package data;

import java.util.ArrayList;

import obj.Table;

public class ListTable {

	public static ArrayList<Table> tables = new ArrayList<Table>();

	public static void addTable(Table table) {
		tables.add(table);

	}

	public static Table getTable() {
		if (tables.size() == 0) {
			return null;
		} else {
			Table table = tables.get(0);
			tables.remove(table);
			return table;
		}
	}

}
